(function ($) {
    $.ajax({
        type: "post",
        url: "/patient/patientCount",
        dataType: "json",
        success: function (data ,textStatus, jqXHR) {
            console.log(data);
            $("#patientCount").html(data)
        },
        error:function (XMLHttpRequest, textStatus, errorThrown) {
            alert("请求失败！");
        }
    });

    $.ajax({
        type: "post",
        url: "/pay/getTotalProfit",
        dataType: "json",
        success: function (data ,textStatus, jqXHR) {
            console.log(data);
            $("#profits").html(data)
        },
        error:function (XMLHttpRequest, textStatus, errorThrown) {
            alert("请求失败！");
        }
    });
})(jQuery);